<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <#--freemareker注释，不会显示哦！-->
    <title>${post.title!"无标题"}</title>
    <style>
        p {
            line-height: 2em;
        }
    </style>
</head>

<body>
<h3 align="center">${post.title}</h3>
<p align="center"><a href="update_post?pid=${post.id}">修改</a> <a href="doDeletePost?pid=${post.id}">删除</a></p>
<p>${post.content}</p>
<hr/>
<#list comments as comment>
    <p>${comment.name}(${comment.email})(<a href="doDeleteComment?cid=${comment.id}">删除</a>)：${comment.comment}</p>
</#list>
<form action="post">
    第<input type="text" name="pageNum" value="${pageNum!'1'}">页面
    <input type="hidden" name="pid" value="${pid}"><br/>
    <input type="submit" value="查看">
</form>

<hr/>
<form action="">
    姓名：<input type="text" name="pageNum"><br/>
    邮箱：<input type="text"><br/>
    评论：<textarea>
    </textarea><br/>
    <input type="submit" value="评论">

</form>
</body>
</html>